import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPlayerCopy
    
    export  class SPlayerCopy extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPlayerCopy();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.copyCode);
            arg1.writeInt(this.todayEnterNum);
            arg1.writeInt(this.addNum);
            arg1.writeInt(this.leftNum);
            arg1.writeInt(this.historyBestCredit);
            arg1.writeInt(this.historyUseTime);
            arg1.writeInt(this.todayBestCredit);
            arg1.writeInt(this.getRewardLevel);
            arg1.writeInt(this.maxProcess);
            arg1.writeInt(this.maxProcessTime);
            arg1.writeInt(this.maxFirstRewardProcess);
            arg1.writeInt(this.totalPracticeTime);
            arg1.writeInt(this.usedPracticeTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.copyCode = arg1.readInt();
            this.todayEnterNum = arg1.readInt();
            this.addNum = arg1.readInt();
            this.leftNum = arg1.readInt();
            this.historyBestCredit = arg1.readInt();
            this.historyUseTime = arg1.readInt();
            this.todayBestCredit = arg1.readInt();
            this.getRewardLevel = arg1.readInt();
            this.maxProcess = arg1.readInt();
            this.maxProcessTime = arg1.readInt();
            this.maxFirstRewardProcess = arg1.readInt();
            this.totalPracticeTime = arg1.readInt();
            this.usedPracticeTime = arg1.readInt();
            return;
        }

        public /* const */_type: int=20425;

        public /* var */copyCode: int;

        public /* var */todayEnterNum: int;

        public /* var */addNum: int;

        public /* var */leftNum: int;

        public /* var */historyBestCredit: int;

        public /* var */historyUseTime: int;

        public /* var */todayBestCredit: int;

        public /* var */getRewardLevel: int;

        public /* var */maxProcess: int;

        public /* var */maxProcessTime: int;

        public /* var */maxFirstRewardProcess: int;

        public /* var */totalPracticeTime: int;

        public /* var */usedPracticeTime: int;

        public static /* var */_regist: SPlayerCopy;
    }

            SPlayerCopy._regist = new SPlayerCopy(true);
        